import request from '@/utils/request'

// 车辆申请分页
export function getList(params) {
  return request({
    url: '/carUseApplication/list',
    method: 'POST',
    params
  })
}

// 车辆申请添加
export function addApplication(data) {
  return request({
    url: '/carUseApplication/add',
    method: 'POST',
    data
  })
}

// 查询单条
export function selectApplication(params) {
  return request({
    url: '/carUseApplication/load',
    method: 'POST',
    params
  })
}

// 删除车辆申请数据
export function deleteApplication(data) {
  return request({
    url: '/carUseApplication/delete',
    method: 'post',
    data
  })
}

// 修改车辆申请数据
export function updateApplication(data) {
  return request({
    url: '/carUseApplication/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}
